package com.tian.view.draw.path

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment

/**
 * @author tiansongtao, Email:769001510@qq.com
 * @date 2022/12/29 17:46
 *
 * path 绘制多个复合路径
 */
class PathFragment : Fragment() {

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        (requireActivity() as AppCompatActivity).supportActionBar?.title = "Path绘制复合路径"
        val drawView = PathView(requireContext())
        val lp = ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)
        drawView.layoutParams = lp
        return drawView
    }
}